//package com.oocl.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
//import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
//import org.springframework.web.socket.handler.TextWebSocketHandler;
//import org.springframework.web.socket.sockjs.transport.handler.SockJsWebSocketHandler;
//
//public class SpringWebSocketConfig extends WebMvcConfigurerAdapter implements WebSocketConfigurer{
//	
//	@Override
//	public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
//		registry.addHandler(webSocketHandler(),"/websocket/socketServer.do").addInterceptors(new SpringWebSocketHandlerInterceptor());
//        registry.addHandler(webSocketHandler(), "/sockjs/socketServer.do").addInterceptors(new SpringWebSocketHandlerInterceptor()).withSockJS();
//        
//        @Bean
//        public TextWebSocketHandler webSocketHandler(){
//            return new SockJsWebSocketHandler(serviceConfig, webSocketHandler, sockJsSession)
//        }
//	}
//
//}
